package com.mnsq.category.service.impl;

import com.mnsq.category.bean.condition.TypeCondition;
import com.mnsq.category.bean.entity.Type;
import com.mnsq.category.dao.TypeRepository;
import com.mnsq.category.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeRepository typeRepository;

    @Override
    public List<Type> queryByCondition(TypeCondition typeCondition) {
        return typeRepository.findAll();
    }

    @Override
    public void add(List<Type> list) {

    }

    @Override
    public List<Type> queryList(TypeCondition typeCondition) {
        return typeRepository.findAll();
    }
}
